package com.dailyblue.project.estate.controller;

import com.dailyblue.project.estate.commons.bean.Student;
import com.dailyblue.project.estate.commons.util.JsonResult;
import com.dailyblue.project.estate.service.LoginService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:LoginController
 * @Date:2025/9/21 16:16
 */
@RestController
@RequestMapping("/login")
public class LoginController {
    @Resource
    private LoginService loginService;

    @PostMapping
    JsonResult login(@RequestBody Student student){
        return loginService.login(student);
    }
}
